# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-acme
pkgver=1.6.0
pkgrel=1
pkgdesc="ACME protocol implementation in Python"
url="https://github.com/certbot/certbot"
arch="noarch"
license="Apache-2.0"
depends="py3-setuptools py3-cryptography py3-josepy
	py3-mock py3-openssl py3-pyrfc3339 py3-tz py3-requests
	py3-requests-toolbelt py3-six"
checkdepends="py3-pytest py3-pytest-runner"
source="https://pypi.io/packages/source/a/acme/acme-$pkgver.tar.gz"
builddir="$srcdir/${pkgname/py3-/}-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="29280a99e9e3fb31adda8947dbb2b87fde663f7082b88373d7ba3955dd4c173a56833cda6d58c0466738398f831d51feace1fe9e5ebbb8bbc1cc0a134039d376  acme-1.6.0.tar.gz"
